%-*-coding: utf-8 -*- 
%abs-guide.tex
%\colorbox{magenta}{code sample}
\documentclass[a4paper,UTF8,nofonts]{ctexbook}
\pagestyle{headings}
\usepackage{syntonly}
%\syntaxonly %only test
\usepackage{listings}
\usepackage{fancybox}
\usepackage{xeCJK}
\usepackage{fontspec}
\usepackage[usenames,dvipsnames]{color}
\punctstyle{kaiming}
\setmainfont{TeX Gyre Pagella} % 缺省英文
\setmonofont{Computer Modern} %英文等宽字体
%\setsansfont{Monaco} %英文无衬线
\setCJKmainfont[ItalicFont={AR PL ZenKai Uni}] %缺省中文
  {WenQuanYi Zen Hei}
\setCJKmonofont{WenQuanYi Zen Hei Mono}
\setCJKsansfont{WenQuanYi Zen Hei} %缺省中文无衬线
%\setCJKfamilyfont
%\pagecolor[rgb]{0.9, 0.99, 0.9} %baohushili
\definecolor{lbcolor}{rgb}{0.9,0.9,0.9}
\renewcommand\lstlistingname{Example}
\renewcommand\lstlistlistingname{Examples}

\lstset{
language=bash,
basicstyle=\footnotesize,
backgroundcolor=\color{lbcolor},
showspaces=false,
showstringspaces=false,
showtabs=false,
%captionpos=b,
breaklines=true,
numberbychapter=true
}

\begin{document}
\title{高级Bash编程指南}
\author{Mendel Cooper}
\date{2010.03.17}
\maketitle
\tableofcontents
\lstlistoflistings %示例列表

\mainmatter
\part{介绍}
\include{abs-guidec-ch01.tex}
\include{abs-guidec-ch02.tex}

\part{基础知识}
\include{abs-guidec-ch03.tex}

\appendix
\backmatter
\end{document}
